package org.outerj.daisy.diff.html.dom;


public class TagNodeProductTag {
	/**
	 * @return  <code>String</code> representation of the closing HTML tag that corresponds to the current node. Probably doesn't work for image tag.
	 */
	public String getEndTag(String qName) {
		return "</" + qName + ">";
	}

	public static boolean isBlockLevel(Node node) {
		try {
			TagNode tagnode = (TagNode) node;
			return TagNode.isBlockLevel(tagnode.getQName());
		} catch (ClassCastException e) {
			return false;
		}
	}

	public boolean isPre(String qName) {
		return qName.equalsIgnoreCase("pre");
	}
}